package cn.zymall.goods.service.impl;

import cn.zymall.common.model.ShoppingCar;
import cn.zymall.goods.mapper.ShopCarMapper;
import cn.zymall.goods.service.ShopCarService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lxh
 * @Description 购物车业务层接口实现类
 * @date 2020/8/26 15:12
 * @Classname ShopCarServiceImpl
 **/
@Service
public class ShopCarServiceImpl extends ServiceImpl<ShopCarMapper, ShoppingCar> implements ShopCarService {

	@Autowired
	private ShopCarMapper shopCarMapper;

	@Override
	public List<ShoppingCar> findMyShoppingCar(Integer id) {
		return shopCarMapper.findMyShoppingCar(id);
	}
}
